package com.itfly.mapper;

import com.itfly.entity.EventManagement;

import java.util.List;

/**
* @author Administrator
* @description 针对表【event_management】的数据库操作Mapper
* @createDate 2024-11-17 21:03:39
* @Entity com.itfly.entity.EventManagement
*/
public interface EventManagementMapper {

    //根据id删除事件
    int deleteByPrimaryKey(Integer id);
    //添加事件
    int insert(EventManagement record);

    //查询事件类型id
    List<EventManagement> selectByCategoryId(Integer categoryId);
    //动态添加事件
    int insertSelective(EventManagement record);
    //查询当前用户的事件
    List<EventManagement> selectById(Integer userId);
    //查询id事件
    EventManagement selectByEventId(Integer id);
    int updateByPrimaryKeySelective(EventManagement record);

    int updateByPrimaryKey(EventManagement eventManagement);

    List<EventManagement> selectAll();
    //模糊查询
    List<EventManagement> selectByLike(EventManagement eventManagement);
}
